package observer02;

import observer02.imp.Observer;

public class Client {
    public static void main(String[] args) {
        //三个观察者
        Observer liSi = new LiSi();
        Observer wangSi = new WangSi();
        Observer liuSi = new LiuSi();

        //韩非子
        HanFeiZi hanFeiZi = new HanFeiZi();

        //三个人观察韩非子
        hanFeiZi.addObserver(liSi);
        hanFeiZi.addObserver(wangSi);
        hanFeiZi.addObserver(liuSi);

        //韩非子开始行动
        hanFeiZi.haveFun();
    }
}
